package studyOwn;

import java.io.*;

public class CopyFileDemo {
    public static void main(String[] args) throws IOException {


        FileInputStream fis = new FileInputStream("funCode\\fis.txt");

        FileOutputStream fos = new FileOutputStream("funCode\\fos.txt");

        int by ;
        while ((by=fis.read() )!= -1) {
            fos.write(by);
        }
        fis.close();
        fos.close();
    }
}
